package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.manger.dto.CommentDto;
import com.zhentao.service.CommentService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/10/9 16:58
 * @Type
 */
@RestController
@RequestMapping("ma/comment")
public class CommentController {
    @Resource
    private CommentService commentService;
    @PostMapping("findById")
    public ResponseResult findById(@RequestBody CommentDto dto){
        return commentService.findById(dto);

    }
}
